﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListInfo.aspx.cs" Inherits="CardLogistics.Web.MainPage.Ordering.Ordering_Cardinfo.ListInfo" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav"
    TagPrefix="uc1" %>
<%@ Register Src="../../../Controls/WebUserControl_ToolBar.ascx" TagName="WebUserControl_ToolBar"
    TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>卡片订货单</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/selPage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../../js/jquery.js"></script>
    <script src="../../../js/jquery.tipswindow.2.0.js" type="text/javascript"></script>
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script src="../../../js/tblistjs.js" type="text/javascript"></script>
    <script src="../../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        //导出卡片订货单
        function CardExport(cid) {
            if (Trim(cid) != "") {
                window.open("OrderCardExport.aspx?orderId=" + cid);
                return true;
            }
            else {
                alert("请选择您要导出的信息!");
                return false;
            }
        }
    </script>
</head>
<body>
    <form runat="server" id="f2">
        <uc1:WebUserControl_Nav ID="WebUserControl_Nav1" runat="server" />
        <div class="rightinfo">
            <uc2:WebUserControl_ToolBar ID="WebUserControl_ToolBar1" MenuName="卡片订货单" runat="server" />
            <ul class="seachform">
                <li>
                    <label>
                        订单编号</label>
                    <asp:TextBox ID="txt_OrderNo" runat="server" CssClass="scinput" Width="100px"></asp:TextBox>
                </li>
                <li>
                    <label>
                        批次号</label>
                    <asp:TextBox ID="txt_BatchNo" runat="server" CssClass="scinput" Width="100px"></asp:TextBox>
                </li>
                <li>
                    <label>
                        合同编号</label>
                    <asp:TextBox ID="txt_PConNo" runat="server" CssClass="scinput" Width="100px"></asp:TextBox>
                </li>
                <li>
                    <label>
                        供应商</label>
                    <select name="ddlsupName" id="ddlsupName" class="dfinput" runat="server" style="width: 100px;">
                    </select>
                </li>
                <li>
                    <label>
                        卡类型</label>
                    <select name="ddlCardType" id="ddlCardType" class="dfinput" runat="server" style="width: 100px;">
                    </select>
                </li>
                 <li>
                    <label>
                        芯片类型</label>
                    <select name="ddlBtypename" id="ddlBtypename" class="dfinput" runat="server" style="width: 100px;">
                    </select>
                </li>
                <li>
                    <label>
                        订单日期</label>
                    <asp:TextBox ID="txt_StartOrderData" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                        Width="100px"></asp:TextBox>&nbsp;至
                <asp:TextBox ID="txt_EndOrderData" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                    Width="100px"></asp:TextBox>
                </li>
                <li>
                    <label>
                        到货日期</label>
                    <asp:TextBox ID="txt_StartGetDate" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                        Width="100px"></asp:TextBox>&nbsp;至
                <asp:TextBox ID="txt_EndGetDate" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                    Width="100px"></asp:TextBox>
                </li>
                <li>
                    <label>
                        状态</label>
                    <asp:DropDownList ID="ddlIsSubmit" class="dfinput" runat="server" Style="width: 100px;">
                    </asp:DropDownList>
                </li>
                <li>
                    <asp:Button ID="btn_Search" runat="server" Text="查询" CssClass="scbtn" OnClick="btn_Search_Click" />
                </li>
            </ul>
            <asp:Repeater ID="rptList" runat="Server">
                <HeaderTemplate>
                    <table class="tablelist" id="tblist">
                        <thead>
                            <tr>
                                <th>序号
                                </th>
                                <th>订单日期
                                </th>
                                <th>订单编号
                                </th>
                                <th>批次号
                                </th>
                                <th>到货日期
                                </th>
                                <th>合同编号
                                </th>
                                <th>供应商名称
                                </th>
                                <th>卡类型
                                </th>
                                <th>芯片类型
                                </th>
                                <th>总数量/张
                                </th>
                                <th>订单负责人
                                </th>
                                <th width="90px">状态
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td align="center" width="50px">
                            <input type="hidden" id="hf_Id" name="hf_Id" value='<%# Eval("ID")%>,<%# Eval("issubmit")%>' />
                            <%# Container.ItemIndex+1+(WebPageIndex*WebPageSize-10) %>
                        </td>
                        <td>
                            <%#string.Format("{0:d}", Eval("ORDERDATA"))%>
                        </td>
                        <td align="center">
                            <%# Eval("ORDERNO")%>
                            <a href="#" onclick="CardExport('<%# Eval("ID")%>');" title="导出该订单">
                                <img src="../../../images/odc.png" style="margin-bottom: -5px;" /></a>
                        </td>
                        <td align="center">
                            <%# Eval("BATCHNO")%>
                        </td>
                        <td align="center">
                            <%#string.Format("{0:d}", Eval("GETDATA"))%>
                        </td>
                        <td align="center">
                            <%# Eval("PConNo")%>
                        </td>
                        <td>
                            <%# Eval("SuppliersName")%>
                        </td>
                        <td>
                            <%# Eval("cardtypename")%>
                        </td>
                        <td>
                            <%# Eval("typename")%>
                        </td>
                        <td align="right">
                            <%# Eval("CardTotal")%>
                        </td>
                        <td>
                            <%# Eval("PIC")%>
                        </td>
                        <td align="center">
                            <%#GetAppStatusName(Eval("issubmit").ToString()) %>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </tbody></table>
                </FooterTemplate>
            </asp:Repeater>
            <webdiyer:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
                runat="server" Width="100%" AlwaysShow="True" FirstPageText="首页" LastPageText="尾页"
                NextPageText="下一页" PageSize="10" PrevPageText="上一页" ShowCustomInfoSection="left"
                ShowInputBox="Never" CustomInfoTextAlign="Left" LayoutType="Table" OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
            <asp:HiddenField ID="hdf_Id" runat="server" />
        </div>
        <script type="text/javascript">
            $('.tablelist tbody tr:odd').addClass('odd');
        </script>
    </form>
</body>
</html>
